package com.zhangtai.modules.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;


import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-06-15 11:54:06
 */
@Data
public class FamilyMemberUpdateVo implements Serializable {
	private static final long serialVersionUID = 1L;


	@TableId
	@JsonDeserialize(using = LongJsonDeserializer.class)
	@JsonSerialize(using = LongJsonSerializer.class)
	private Long oid;
	/**
	 * 员工编号
	 */
	@NotNull(message = "员工id不能为空")
	@ApiModelProperty(value="员工编号",required = true)
	@JsonDeserialize(using = LongJsonDeserializer.class)
	@JsonSerialize(using = LongJsonSerializer.class)
	private Long empoid;
	/**
	 * 联系人姓名
	 */
	@ApiModelProperty(value="家属姓名",required = false)
	private String name;
	/**
	 * 性别
	 */
	@ApiModelProperty(value="家属性别",required = false)
	private String gender;
	/**
	 * 与本人关系
	 */
	@ApiModelProperty(value="与本人关系",required = false)
	private String relation;
	/**
	 * 家属工作单位
	 */
	@ApiModelProperty(value="家属工作单位",required = false)
	private String company;
	/**
	 * 联系号码
	 */
	@ApiModelProperty(value="联系号码",required = false)
	private String phone;

	/**
	 * 是否紧急联系人0：不是，1：是
	 */
	@ApiModelProperty(value="是否紧急联系人1：是，2：不是",required = false)
	private String isEmergencyContact;


}
